using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class TalentBallet : TalentBasic
{
    public bool Double;
    public int num;
    public override void OnClick()
    {
        if (PlayerData.coninsfortalent > 0)
        {
            PlayerData.ballet = true;
            PlayerData.balletnum += num;
            if (Double) PlayerData.balletnum *= 2;
            base.OnClick();
        }
    }
}
